<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */


$article = <<<ARTICLE
 {"title":"文章列表","type":"articleList","icon":"iconArticleList","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]},{"title":"显示数量","type":"InputNumber","name":"row"}],"data":{"title":"文章列表","modular":"","modular_type":1,"row":{"number":4,"min":2,"max":10,"label":"请输入"}},"dataList":[]}

ARTICLE;

$imgtext = <<<IMGTEXT
{"title":"图文详情","type":"imageText","icon":"iconImageText","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]}],"data":{"title":"图文详情","modular":"","modular_type":2},"dataList":[]}
IMGTEXT;


$recruit = <<<RECRUIT
{"title":"招聘信息","type":"recruitInfo","icon":"iconRecruitInfo","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]},{"title":"显示数量","type":"InputNumber","name":"row"}],"data":{"title":"招聘信息","modular":"","modular_type":3,"row":{"number":4,"min":2,"max":10,"label":"请输入"}},"dataList":[]}
RECRUIT;

$contactUs = <<<CONTACTUS
{"title":"联系我们","type":"contactUs","icon":"iconContactUs","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]}],"data":{"title":"联系我们","modular":"","modular_type":4},"dataList":[]}
CONTACTUS;


$staffList = <<<STAFFLIST
{"title":"员工展示","type":"staffList","icon":"iconStaffList","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]},{"title":"显示数量","type":"InputNumber","name":"row"}],"data":{"title":"员工展示","modular":"","modular_type":5,"row":{"number":4,"min":2,"max":10,"label":"请输入"}},"dataList":[]}
STAFFLIST;


$video = <<<VIDEO
{"title":"视频模块","type":"videoModule","icon":"iconVideoModule","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]},{"title":"显示数量","type":"InputNumber","name":"row"}],"data":{"title":"视频模块","modular":"","modular_type":7,"row":{"number":4,"min":2,"max":10,"label":"请输入"}},"dataList":[]}
VIDEO;

$form = <<<FORM
{"title":"表单模块","type":"formModule","icon":"iconFormModule","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]}],"data":{"title":"表单模块","modular":"","modular_type":8},"dataList":[]}
FORM;


$starList = <<<STARLIST
{"title":"明星展示","type":"starList","icon":"iconStaffList","isDelete":true,"addNumber":1,"attr":[{"title":"选择模块","type":"Select","name":"modular","changeTitle":true,"data":[]},{"title":"显示数量","type":"InputNumber","name":"row"}],"data":{"title":"明星展示","modular":"","modular_type":11,"row":{"number":4,"min":2,"max":10,"label":"请输入"}},"dataList":[]}
STARLIST;


//模块组件 后台DIY页面的左侧
return [

    [
        "title" => "业务组件",

        'type' => 'websiteCompoent',

        'data' =>[

            json_decode($article, true),

            json_decode($imgtext, true),

            json_decode($recruit, true),

            json_decode($contactUs, true),

            json_decode($staffList, true),

            json_decode($video, true),

            json_decode($form, true),
			
            json_decode($starList, true),

        ]
    ],
];